package net.jarang.study.spring.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
public class ListController {
	@RequestMapping("/list")
	public ModelAndView list(String userId) {
		ModelAndView mav = new ModelAndView("list");
		mav.addObject("list", userId);
		return mav;
	}
	
	@RequestMapping("/contentList")
	public ModelAndView contentList(String userId) {
		ModelAndView mav = new ModelAndView("contentList");
		mav.addObject("list", userId);
		return mav;
	}
}
